package min.chapter.five.board.service;

import min.chapter.five.board.Article;

public class ReadArticleServiceImplement implements ReadArticleService {
	@Override
	public Article getArticleAndIncreaseReadCount(int id)
			throws ArticleNotFoundException {
		if (id == 0) {
			throw new ArticleNotFoundException();
		}
		return new Article(id);
	}
}